from datetime import datetime

from flask import jsonify


def register_routes(app):
    """注册所有路由到应用实例"""

    @app.route('/health', methods=['GET'])
    def health():
        return jsonify({
            'status': 'ok',
            'message': 'Service is healthy',
            'timestamp': datetime.utcnow().isoformat() + 'Z'
        }), 200